package com.thoughtworks.jsstaticanalysis;

import org.antlr.runtime.RecognitionException;

import java.io.*;

public class Main {

    public static void main(String[] args) throws IOException, RecognitionException {
        if (args.length == 0) {
            System.err.println("No source.");
            System.exit(-1);
        }

        JavascriptSummary summary = new JavascriptSummary(args[0]);
        JavasrciptSummaryReport report = new JavasrciptSummaryReport();
        report.report(summary, "jsreport.html");
    }
}
